package br.com.fatecmc.core.conexao;



import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 *
 * @author Erico Veriscimo
 */
public class Conexao {
    public static Connection getConexao() throws SQLException {    
         try {    
                 Class.forName("org.postgresql.Driver");    
                 return DriverManager.getConnection("jdbc:postgresql://localhost:5432/persephone","persephone","persephone");    
         }    
         catch (ClassNotFoundException e) {    
                 throw new SQLException(e.getMessage());    
         }    
    }   
}
